package com.sanjiahantang.youjiarole.module.common.beans;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.sanjiahantang.youjiarole.base.BaseBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Pisces on 2015/10/9.
 */
public class CartGoodsBean extends BaseBean {
    private String data;

    public List<Data> getData() {
        return new Gson().fromJson(data,new TypeToken<List<Data>>(){}.getType());
    }

    public void setData(String data) {
        this.data = data;
    }

    /**
     * Created by Su on 2015/10/9.
     */
    public static class Data implements Serializable {
        private String basePrice;
        private String goodsName;
        private int mgiId;
        private String mgpiValue;
        private int mgsciId;
        private int number;
        private String phone;
        private int role;
        private String skuId;
        private int stockCount;
        private String url;
        private String supplyId;
        private String supplyName;

        public String getSupplyId() {
            return supplyId;
        }

        public void setSupplyId(String supplyId) {
            this.supplyId = supplyId;
        }

        public String getSupplyName() {
            return supplyName;
        }

        public void setSupplyName(String supplyName) {
            this.supplyName = supplyName;
        }

        public String getBasePrice() {
            return basePrice;
        }

        public void setBasePrice(String basePrice) {
            this.basePrice = basePrice;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public int getMgiId() {
            return mgiId;
        }

        public void setMgiId(int mgiId) {
            this.mgiId = mgiId;
        }

        public String getMgpiValue() {
            return mgpiValue;
        }

        public void setMgpiValue(String mgpiValue) {
            this.mgpiValue = mgpiValue;
        }

        public int getMgsciId() {
            return mgsciId;
        }

        public void setMgsciId(int mgsciId) {
            this.mgsciId = mgsciId;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getRole() {
            return role;
        }

        public void setRole(int role) {
            this.role = role;
        }

        public String getSkuId() {
            return skuId;
        }

        public void setSkuId(String skuId) {
            this.skuId = skuId;
        }

        public int getStockCount() {
            return stockCount;
        }

        public void setStockCount(int stockCount) {
            this.stockCount = stockCount;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
